import {getHandler,postHandler} from "../utils/HttpUtil";

// 生成图片
export async function generation(data) {
  const url = `/services/aigc/image-generation/generation`;
  return postHandler(url,data)
}

// 获取所有任务
export async function getTasks() {
  const url = `/tasks`;
  return getHandler(url)
}

// 获取任务信息
export async function getTaskInfo(taskId) {
  const url = `/tasks/`+taskId;
  return getHandler(url)
}
